package com.example.circular;

import com.example.circular.bean2.Husband;
import com.example.circular.bean2.Wife;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:testBean2
 * Package:com.example.circular
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/9-14:40
 * @Version:v1.0
 */
public class testBean2 {
//    @Test
//    public void testBean2() {
//        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-bean.xml");
//        Husband husband = applicationContext.getBean("husband", Husband.class);
//        System.out.println(husband);
//        Wife wife = applicationContext.getBean("wife", Wife.class);
//        System.out.println(wife);
//    }
}
